package com.eyas.business.model.jdbcEntity.table;

import com.eyas.core.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @Auther: 王龙龙
 * @Date: 2019/2/22 15:25
 * @Description:
 */
@Table("admininfo")
public class AdminInfo {
    @PrimaryKey(value = "adminnid",columnType = ColumnType.INT,columnSize = 8,IsNull = false,inrementType = IncrementType.AUTOINCREMENT)
    private Integer adminnid;
    @Column(column = "loginname",columnType = ColumnType.STRING,IsNull = false,columnSize = 100)
    private String loginname;
    @Column(column = "password",columnType = ColumnType.STRING,IsNull = false,columnSize = 100)
    private String password;
    @Column(column = "username",columnType = ColumnType.STRING,IsNull = false,columnSize = 50)
    private String username;
    @Column(column = "sex",columnType = ColumnType.STRING,IsNull = true,columnSize = 1)
    private String sex;
    @Column(column = "telephone",columnType = ColumnType.STRING,IsNull = true,columnSize = 11)
    private String telephone;
    @Column(column = "validflag",columnType = ColumnType.STRING,IsNull = true,columnSize = 1)
    private String validflag;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @Column(column = "addtime",columnType = ColumnType.DATE,IsNull = true)
    private Date addtime;
    @Column(column = "addid",columnType = ColumnType.INT,IsNull = true)
    private Integer addid;

    public Integer getAdminnid() {
        return adminnid;
    }

    public void setAdminnid(Integer adminnid) {
        this.adminnid = adminnid;
    }

    public String getLoginname() {
        return loginname;
    }

    public void setLoginname(String loginname) {
        this.loginname = loginname;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getValidflag() {
        return validflag;
    }

    public void setValidflag(String validflag) {
        this.validflag = validflag;
    }

    public Date getAddtime() {
        return addtime;
    }

    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

    public Integer getAddid() {
        return addid;
    }

    public void setAddid(Integer addid) {
        this.addid = addid;
    }
}
